#include "syscall.h"

int mainLock = -1;
int mainCondition = -1;

int randLock0 = -1;
int randLock1 = -1;
int randLock2 = -1;

int randCond0 = -1;
int randCond1 = -1;
int randCond2 = -1;


/*Tests all functions of the server client design*/
int main(){

	int Selection = -1;
	Write("---Start lockTestForServer2---\n",31,1);
	
	Write("-create lock\n",13,1);
	mainLock = CreateLock("mainLock"); 
	Write("-create conditon\n",17,1);
	mainCondition = CreateCondition("mainCondition");

/*	
	Write("-acquire Lock\n",14,1);
	Acquire(mainLock);	*/     /*Create mainLock*/
/*
	Write("-release Lock\n",14,1);
	Release(mainLock); */	/*Release mainLock*/

	Acquire(mainLock);	/*Create mainLock*/
	/*Wait(mainCondition, mainLock);*/
	
	Signal(mainCondition, mainLock);

	Release(mainLock);	/*Release mainLock*/





/*
	Write("-acquire Lock error\n",21,1);
	Acquire(-1);
*/

	



	Write("---End of lockTestForServer2---\n",32,1);

	return 1;
}


